
export async function getInit() {
    let data = [];
    try {
        let res = await this.axios({
            method: 'get', 
            url: `/home/init`
        });
        data = res.data;
    } catch (error) {
        console.error(error);
    }
    return data;
}

export async function delImage(filename){
    let code;
    try {
        let res = await this.axios.post(`/home/delImage?filename=${filename}`);
        code = res.data.code;
    } catch (error) {
        console.error(error);
    }
    return code;
}















